package com.dreammakerteam.frameworkdemo.qzhj.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.dreammakerteam.frameworkdemo.base.service.DBaseService;
import com.dreammakerteam.frameworkdemo.base.service.DMapper;
import com.dreammakerteam.frameworkdemo.qzhj.domain.DQzhjProductDo;
import com.dreammakerteam.frameworkdemo.qzhj.mapper.DQzhjProductMapper;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.File;
import java.io.IOException;

/**
 * Created by ty850 on 2017/10/11.
 */
public interface DQProductService extends DBaseService, DMapper<DQzhjProductMapper> {

    /**
     * 增加产品
     * @param prod 产品信息
     */
    void add(DQzhjProductDo prod, File[] files) throws IOException, SolrServerException;


    /**
     * 列表展示
     * @param page 页数
     * @param size 每页条数
     * @return 产品信息
     */
    Page<DQzhjProductDo> list(int pageNum, int pageSize);




}
